<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla Security
defined('_JEXEC') or die;
JHTML::_('behavior.mootools');
jimport('joomla.application.component.helper');
if(JComponentHelper::isEnabled('com_joosam', true)): ?>
	<div id="jsamEvent"></div><?php
	$joosam_plugin = JPluginHelper::isEnabled('system', 'joosam');
	if($joosam_plugin): ?>
		<script>
			var timer = 3000;
			setTimeout('joosam.ajax_event("jsamEvent", '+timer+')', timer);
		</script> <?php
	else: ?>
		<div id="jsamEvent">
			<div style="background:white; color:red; font-weight:bold; border-radius:10px; margin:1px; text-align:center; padding:0;">
				<?php echo JText::_('MOD_JOOSAM_EVENT_NOPLUGIN'); ?>
			</div>
		</div><?php
	endif;
else: ?>
	<div id="jsamEvent">
		<div style="background:white; color:red; font-weight:bold; border-radius:10px; margin:1px; text-align:center; padding:0;">
			<?php echo JText::_('MOD_JOOSAM_EVENT_NOCOMPONENT'); ?>
		</div>
	</div><?php
endif;
?>